import Vue from 'vue'
import Router from 'vue-router'
import Component1 from '../views/Component1'
import Component2 from '../views/Component2'
import Index from '../views/Index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/component1',
      name: 'component1',
      component: Component1
    },
    {
      path: '/component2',
      name: 'component2',
      component: Component2
    }
  ]
})
